package entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import lombok.Data;

import java.io.Serializable;

/**
 * @Author ZhangGJ
 * @Date 2022/04/26 09:31
 */
@Data
@TableName("optimistic_lock")
public class OptimisticLock implements Serializable {

    private static final long serialVersionUID = 7756537225706108154L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String name;

    private Integer status;

    @Version
    private Integer version;
}
